# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=libxisf
pkgver=0.2.3
pkgrel=2
pkgdesc='Library to load and write XISF format from PixInsight'
url='https://gitea.nouspiro.space/nou/libXISF'
license=(GPL3)
arch=(loong64 x86_64)
depends=(zlib lz4 pugixml)
makedepends=(cmake)
source=($pkgname-$pkgver.tar.gz::https://gitea.nouspiro.space/nou/libXISF/archive/v$pkgver.tar.gz)
sha256sums=('5574d850afd158f949089bdeb9cf52b814023d77c798ed2f2030828b17f471fc')

build() {
  cmake -B build -S $pkgname \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DUSE_BUNDLED_LIBS=OFF
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
